package com.ln.cmsln.controller.zlxl.api;


import com.alibaba.fastjson.JSON;
import com.ln.cmsln.mapper.HeadimageMapper;
import com.ln.cmsln.pojo.entity.Headimage;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuwenzhe
 * @since 2022-03-31
 */
@CrossOrigin//跨域
@RestController
@RequestMapping("/apiheadimage")
public class ApiHeadimageController {
    @Resource
    private HeadimageMapper headimageMapper ;

    @RequestMapping("getAll")
    public List<Headimage> getAll() {
//        PageHelper.startPage(page,limit);
        List<Headimage> headimages = headimageMapper.selectList(null);
        return headimages ;
    }

}

